

<#macro dynamicForms fields>
	<#list fields as item>
		<#-- 栏目 -->
  		<#if item.fieldTypeId=="catalog">
  			<@catalog field=item></@catalog>
  		<#-- 标题 -->
  		<#elseif item.fieldTypeId=="title">
  			<@title field=item></@title>
  		<#-- 关键字 -->
  		<#elseif item.fieldTypeId=="keywords">
  			<@keywords field=item></@keywords>
  		<#-- 来源 -->
  		<#elseif item.fieldTypeId=="copyfrom">
  			<@copyfrom field=item></@copyfrom>
  		<#-- 推荐位 -->
  		<#elseif item.fieldTypeId=="position">
  			<@position field=item></@position>
  		<#-- 相关内容 -->
  		<#elseif item.fieldTypeId=="relation">
  			<@relation field=item></@relation>
  		<#-- 模板 -->
  		<#elseif item.fieldTypeId=="template">
  			<@template field=item></@template>
  		<#-- 日期 -->
  		<#elseif item.fieldTypeId=="datetime">
  			<@datetime field=item></@datetime>
  		<#-- 发布日期 -->
  		<#elseif item.fieldTypeId=="releasetime">
  			<@releasetime field=item></@releasetime>
  		<#-- 编辑框 -->
  		<#elseif item.fieldTypeId=="editor">
  			<@editor field=item></@editor>
  		<#-- 单行输入-->
  		<#elseif item.fieldTypeId=="text">
  			<@text field=item></@text>
  		<#-- 数字输入-->
  		<#elseif item.fieldTypeId=="number">
  			<@number field=item></@number>
  		<#-- 多行输入-->
  		<#elseif item.fieldTypeId=="textarea">
  			<@textarea field=item></@textarea>
  		<#-- 上传 -->
  		<#elseif item.fieldTypeId=="upload">
  			<@upload field=item></@upload>
  		<#-- 选择框-->
  		<#elseif item.fieldTypeId=="box">
  			<@box field=item></@box>
  		<#-- 状态-->
  		<#elseif item.fieldTypeId=="status">
  			<@status field=item></@status>
  		<#-- 是否连接-->
  		<#elseif item.fieldTypeId=="islink">
  			<@islink field=item></@islink>
  		<#-- 内容 -->
  		<#elseif item.fieldTypeId=="content">
  			<@content field=item></@content>
  		<#-- 缩略图 -->
  		<#elseif item.fieldTypeId=="thumb">
  			<@thumb field=item></@thumb>
  		</#if>
  	</#list>
</#macro>




<#-- 日期-->
<#macro datetime field>
	<tr>
      <th width="80">${field.name}</th>
      <td><link rel="stylesheet" type="text/css" href="statics/js/calendar/jscal2.css">
			<link rel="stylesheet" type="text/css" href="statics/js/calendar/border-radius.css">
			<link rel="stylesheet" type="text/css" href="statics/js/calendar/win2k.css">
			<script type="text/javascript" src="statics/js/calendar/calendar.js"></script>
			<script type="text/javascript" src="statics/js/calendar/lang/en.js"></script>
			<input type="text" name="info[${field.field}]" id="${field.field}" value="${field.defaultValue}" size="21" class="date input-text" readonly="">&nbsp;<script type="text/javascript">
			Calendar.setup({
			weekNumbers: true,
		    inputField : "${field.field}",
		    trigger    : "${field.field}",
		    dateFormat: "%Y-%m-%d %H:%M:%S",
		    showTime: true,
		    minuteStep: 1,
		    onSelect   : function() {this.hide();}
			});
        </script>  
      </td>
    </tr>
</#macro>

<#-- 编辑框 -->
<#macro editor field>
	<#if field.toolbar=="full">
		<tr>
			<th width="80"> <font color="red">*</font>${field.name}</th>
			  <td>
			      <div id="content_tip"></div><textarea name="info[${field.field}]" id="${field.field}" boxid="content" style="visibility: hidden; display: none;">${field.defaultValue}</textarea>
			      
			      <script type="text/javascript" src="statics/js/ckeditor/ckeditor.js"></script>
			      <script type="text/javascript">
					CKEDITOR.replace( 'content',{height:300,pages:true,subtitle:true,textareaid:'content',module:'content',catid:'14',
					flashupload:true,alowuploadexts:'',allowbrowser:'1',allowuploadnum:'10',authkey:'0df34138fbddc8df5f5d97b3274c8778',
					filebrowserUploadUrl : 'index.php?m=attachment&c=attachments&a=upload&module=content&catid=14&dosubmit=1',
					toolbar :
					[
					['Source','-','Templates'],
							    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print'],
							    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['ShowBlocks'],['Image','Capture','Flash','MyVideo'],['Maximize'],
							    '/',
							    ['Bold','Italic','Underline','Strike','-'],
							    ['Subscript','Superscript','-'],
							    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
							    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
							    ['Link','Unlink','Anchor'],
							    ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
							    '/',
							    ['Styles','Format','Font','FontSize'],
							    ['TextColor','BGColor'],
							    ['attachment'],
					]
					});
					</script>
					<div class="editor_bottom"><script type="text/javascript" src="statics/js/swfupload/swf2ckeditor.js"></script><div id="page_title_div">
					<table cellpadding="0" cellspacing="1" border="0"><tbody><tr><td class="title">子标题<span id="msg_page_title_value"></span></td><td>
					<a class="close" href="javascript:;" onclick="javascript:$(&quot;#page_title_div&quot;).hide();"><span>×</span></a></td>
					</tr><tr><td colspan="2"><input name="page_title_value" id="page_title_value" class="input-text" value="" size="30">&nbsp;<input type="button" class="button" value="提交" onclick="insert_page_title(&quot;content&quot;,1)"></td></tr>
					</tbody></table></div></div>  <div class="content_attr"><label><input name="add_introduce" type="checkbox" value="1" checked="">是否截取内容</label><input type="text" name="introcude_length" value="200" size="3" class="input-text">字符至内容摘要
			<label><input type="checkbox" name="auto_thumb" value="1" checked="">是否获取内容第</label><input type="text" name="auto_thumb_no" value="1" size="2" class="input-text">张图片作为标题图片
			</div><div id="contentTip" style="display: none;"></div>
			${field.tips}
			</td>
	    </tr>
    <#elseif field.toolbar=="basic">
		<tr>
	      <th width="80">${field.name}</th>
	      <td><div id="contents_tip"></div><textarea name="info[${field.field}]" id="${field.field}" boxid="content" style="visibility: hidden; display: none;">${field.defaultValue}</textarea>
	      <script type="text/javascript" src="statics/js/ckeditor/ckeditor.js"></script>
	      <script type="text/javascript">
				CKEDITOR.replace( 'content',{height:200,pages:false,subtitle:false,textareaid:'contents',module:'content',catid:'0',
				flashupload:true,alowuploadexts:'',allowbrowser:'1',allowuploadnum:'10',authkey:'0df34138fbddc8df5f5d97b3274c8778',
				filebrowserUploadUrl : 'index.php?m=attachment&c=attachments&a=upload&module=content&catid=0&dosubmit=1',
				toolbar :
				[
				['Source'],['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],['Maximize'],
				]
				});
			</script>
			<div class="editor_bottom"><script type="text/javascript" src="statics/js/swfupload/swf2ckeditor.js"></script><div id="page_title_div">
			<table cellpadding="0" cellspacing="1" border="0"><tbody><tr><td class="title">子标题<span id="msg_page_title_value"></span></td><td>
			<a class="close" href="javascript:;" onclick="javascript:$(&quot;#page_title_div&quot;).hide();"><span>×</span></a></td>
			</tr><tr><td colspan="2"><input name="page_title_value" id="page_title_value" class="input-text" value="" size="30">&nbsp;<input type="button" class="button" value="提交" onclick="insert_page_title(&quot;contents&quot;,1)"></td></tr>
			</tbody></table></div></div> ${field.tips}
			</td>
	    </tr>
    </#if>
</#macro>

<#-- 单行输入框 -->
<#macro text field>
	<tr>
      <th width="80">${field.name}</th>
      <td><input type="text" name="info[${field.field}]" id="${field.field}" size="50" value="${field.defaultValue}" class="input-text">  </td>
    </tr>
</#macro> 

<#-- 数字输入框 -->
<#macro number field>
    <tr>
      <th width="80">${field.name}</th>
      <td><input type="text" name="info[${field.field}]" id="${field.field}" value="${field.defaultValue}" class="input-text" size="">  </td>
    </tr>
</#macro> 

<#-- 多行行输入框 -->
<#macro textarea field>
	<tr>
      <th width="80">${field.name}</th>
      <td><textarea name="info[${field.field}]" id="${field.field}" style="width:98%;height:46px;" onkeyup="strlen_verify(this, 'description_len', 255)">${field.defaultValue}</textarea>还可输入<b><span id="description_len">255</span></b> 个字符  </td>
    </tr>
</#macro> 

<#-- 图片上传框 -->
<#macro upload field>
	<#if field.uploadFileType="content">
	<tr>
      <th width="80">${field.name}</th>
      <td>
      	<input name="info[${field.field}]" type="hidden" value="">
		<fieldset class="blue pad-10">
	        <legend>图片列表</legend>
	        <center><div class="onShow" id="nameTip">您最多可以同时上传 <font color="red">${field.maxUploadQuantity}</font> 张</div></center>
	        <div id="${field.field}" class="picList">
	        	<#list field.defaultValue as item>
	        	<li id="image_${item.contentAttacId}">
	        		<input type="text" name="info[${field.field}ImageUrl]" value="${item.imageUrl}" style="width:310px;" ondblclick="image_priview(this.value);" class="input-text"> 
	        		<input type="text" name="info[${field.field}Description]" value="${item.description}" style="width:160px;" class="input-text" onfocus="if(this.value == this.defaultValue) this.value = ''" onblur="if(this.value.replace(' ','') == '') this.value = this.defaultValue;"> 
	        		<a href="javascript:remove_div('image_${item.contentAttacId}')">移除</a> 
	        	</li>
	        	</#list>
	        </div>
		</fieldset>
		<div class="bk10"></div>
		<div class="picBut cu"><a herf="javascript:void(0);" onclick="javascript:flashupload('imagess_images', '附件上传','${field.field}',change_images,'fileUploadLimit=${field.maxUploadQuantity}&fileTypes=${field.uploadAllowext}&fileSizeLimit=2&module=content')"> 选择图片 </a></div>  </td>
    </tr>
	
	<#elseif field.uploadFileType="files">
	<tr>
      <th width="80"> 文件列表	</th>
      <td><input name="info[file_list]" type="hidden" value="1">
		<fieldset class="blue pad-10">
        <legend>文件列表</legend><ul id="file_list" class="picList"></ul>
		</fieldset>
		<div class="bk10"></div>
		<input type="button" class="button" value="多文件上传" onclick="javascript:flashupload('file_list_multifile', '附件上传','file_list',change_multifile,'fileUploadLimit=10&fileTypes=zip|rar|jpg&fileSizeLimit=20&module=files')">    <input type="button" class="button" value="添加远程地址" onclick="add_multifile('file_list')">  </td>
    </tr>
	</#if>
	
</#macro>

<#-- 选择框 -->
<#macro box field>

	<#if field.boxType=="radio">
	<tr>
      <th width="80">${field.name}</th>
      <td>
      	<#list  field.options?keys as mykey>
      	<label class="ib" style="width:${field.width}px"><input type="radio" name="info[${field.field}]" id="${field.field}_${field.options[mykey]}" value="${field.options[mykey]}" <#if field.defaultValue==field.options[mykey]>checked</#if>>${mykey}</label>
      	</#list>
      </td>
    </tr>
	<#elseif field.boxType=="checkbox">
    <tr>
      <th width="80">${field.name}</th>
      <td>
      	<#list  field.options?keys as mykey>
      	<label class="ib" style="width:${field.width}px"><input type="checkbox" name="info[${field.field}]" id="${field.field}_${field.options[mykey]}"  value="${field.options[mykey]}" <#list field.defaultValues as defaultValue><#if defaultValue==field.options[mykey]>checked</#if></#list>>${mykey}</label>
      	</#list>
      </td>
    </tr>
    <#elseif field.boxType=="select">
    <tr>
      <th width="80">${field.name}</th>
      <td><select name="info[${field.field}]" id="${field.field}_${field.options[mykey]}">
      		<#list  field.options?keys as mykey>
      		<option value="${field.options[mykey]}" <#if field.defaultValue==field.options[mykey]>selected=""</#if>>${mykey}</option>
      		</#list>
      	  </select>  
      </td>
    </tr>

    <#elseif field.boxType=="multiple">
    <tr>
      <th width="80">${field.name}</th>
      <td>
      	<select name="info[${field.field}]" id="${field.field}_${field.options[mykey]}" size="2" multiple="multiple" style="height:60px;">
      		<#list  field.options?keys as mykey>
      		<option value="${field.options[mykey]}" <#list field.defaultValues as defaultValue><#if defaultValue==field.options[mykey]>selected=""</#if></#list>>${mykey}</option>
      		</#list>
      	</select>  
      </td>
    </tr>
    </#if>
</#macro> 


<#-- 栏目 -->
<#macro catalog field>
	<tr>
      <th width="80"><#if field.isCore=="Y"><font color="red">*</font></#if>${field.name}</th>
      <td><input type="hidden" name="catalogId" value="${field.catalog.catalogId}">${field.catalog.catalogName} 
      	<!--
      	<a href="javascript:;" onclick="omnipotent('selectid','?m=content&amp;c=content&amp;a=add_othors&amp;siteid=1','同时发布到其他栏目',1);return false;" style="color:#B5BFBB">[同时发布到其他栏目]</a>
      	<ul class="list-dot-othors" id="add_othors_text"></ul>  
      	-->
      </td>
    </tr>
</#macro> 

<#-- 标题输入框 -->
<#macro title field>
	<tr>
      <th width="80"><#if field.isCore=="Y"><font color="red">*</font></#if>${field.name}</th>
      <td>
      	<input type="text" style="width:400px;" name="title" id="title" value="${field.defaultValue}" class="measure-input  input-text" onblur="$.post('api.php?op=get_keywords&amp;number=3&amp;sid='+Math.random()*5, {data:$('#title').val()}, function(data){if(data &amp;&amp; $('#keywords').val()=='') $('#keywords').val(data); })" onkeyup="strlen_verify(this, 'title_len', 80);">
        <input type="hidden" name="style_color" id="style_color" value="">
		<input type="hidden" name="style_font_weight" id="style_font_weight" value="">
		<input type="button" class="button" id="check_title_alt" value="检测重复" onclick="$.get('?m=content&amp;c=content&amp;a=public_check_title&amp;catid=14&amp;sid='+Math.random()*5, {data:$('#title').val()}, function(data){if(data=='1') {$('#check_title_alt').val('标题重复');$('#check_title_alt').css('background-color','#FFCC66');} else if(data=='0') {$('#check_title_alt').val('标题不重复');$('#check_title_alt').css('background-color','#F8FFE1')}})" style="width:73px;"><img src="statics/images/icon/colour.png" width="15" height="16" onclick="colorpicker('title_colorpanel','set_title_color');" style="cursor:hand"> 
		<img src="statics/images/icon/bold.png" width="10" height="10" onclick="input_font_bold()" style="cursor:hand"> 
		<span id="title_colorpanel" style="position:absolute;" class="colorpanel"></span>还可输入<b><span id="title_len">80</span></b> 个字符  <div id="titleTip" style="display: none;"></div></td>
    </tr>
</#macro> 

<#-- 关键词输入框 -->
<#macro keywords field>
	<tr>
      <th width="80">${field.name}</th>
      <td><input type="text" name="keywords" id="keywords" value="${field.defaultValue}" style="width:280px" class="input-text"> ${field.tips}</td>
    </tr>
</#macro> 

<#-- 来源 -->
<#macro copyfrom field>
	<tr>
      <th width="80">${field.name}</th>
      <td>
      	<select name="copyFromId" id="copyFromId">
      		<option value="0">≡请选择≡</option>
	      	<#list field.copyFroms as item>
	      	<option value="${item.copyFromId}" <#if item.copyFromId == field.defaultValue>selected</#if>>${item.siteName}</option>
	      	</#list>
      	</select>  
      	${field.tips}
      </td>
   </tr>
</#macro> 

<#-- 推荐位 -->
<#macro position field>
	 <tr>
      <th width="80">${field.name}</th>
      <td>
      	<#list field.positions as item>
      	<label class="ib" style="width:125px"><input type="checkbox" name="positions[${item_index}].positionId" id="_${item.positionId}" value="${item.positionId}" <#list field.defaultValues as op><#if item.positionId==op.positionId>checked</#if></#list>> ${item.description} </label>
      	</#list>
      	${field.tips}
      </td>
    </tr>
</#macro>

<#-- 相关内容 -->
<#macro relation field>
	<tr>
      <th width="80">${field.name}</th>
      <td><input type="hidden" name="relation" id="relation" value="${field.defaultValue}" style="50">
			<ul class="list-dot" id="relation_text">
			<#list field.contents as item>
			<li id="li_${item.contentId}">·<span>${item.title}</span><a href="javascript:;" class="close" onclick="remove_relation('li_${item.contentId}',${item.contentId})"></a></li>
			</#list>
			</ul>
			<div>
			<input type="button" value="添加相关" onclick="omnipotent('selectid','admin/content/relation.html','添加相关文章',1)" class="button" style="width:66px;">
			<span class="edit_content" style="display: none;">
			<input type="button" value="显示已有" onclick="show_relation(1,0)" class="button" style="width:66px;">
			</span>
			</div> 
			${field.tips} 
	   </td>
    </tr>
</#macro>

<#-- 模板 -->
<#macro template field>
	<tr>
      <th width="80">${field.name}</th>
      <td>
	      	<select name="template" id="template">
		      	<option value="" selected="">请选择</option>
		      	<#list field.templates as item>
		      	<option value="${item.dirPath}" <#if item.dirPath==field.defaultValue>selected</#if>>${item.filename}</option>
		      	</#list>
	      	</select>  
	      	${field.tips}
       </td>
    </tr>
</#macro>


<#-- 状态 1111-->
<#macro status field>
    <tr>
      <th width="80">${field.name}</th>
      <td>
      	  <label class="ib" style="width:80px"><input type="radio" name="status" id="select_NORMAL" value="NORMAL" <#if field.defaultValue=="NORMAL">checked</#if>>发布状态</label>
	      <label class="ib" style="width:80px"><input type="radio" name="status" id="select_PENDING" value="PENDING" <#if field.defaultValue=="PENDING">checked</#if>>待审状态</label>
	      ${field.tips}
      </td>
    </tr>
</#macro>

<#-- 转向连接 -->
<#macro islink field>
	<tr>
      <th width="80">${field.name}</th>
      <td>
      	<input type="text" name="url" id="url" value="${field.url}" size="25" maxlength="255" class="input-text"> 
      	<input type="checkbox" name="isLink" id="isLink" value="Y" <#if field.defaultValue=="Y">checked</#if>> 
      	<font color="red">转向链接</font>  
      	${field.tips}
      </td>
    </tr>
</#macro>


<#-- 缩略图 -->
<#macro thumb field>
	<tr>
      <th width="80">${field.name}</th>
      <td><div class="upload-pic img-wrap">
      		<input type="hidden" name="thumb" id="thumb" value="${field.defaultValue}">
			<a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','thumb',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,0','content','0','e0d80fe8aecf1f3cc1038ebc3ff4e09a');return false;"><img src="statics/images/icon/upload-pic.png" id="thumb_preview" width="135" height="113" style="cursor:hand"></a>
			<input type="button" style="width: 66px;" class="button" onclick="crop_cut_thumb($('#thumb').val());return false;" value="裁切图片"><input type="button" style="width: 66px;" class="button" onclick="$('#thumb_preview').attr('src','statics/images/icon/upload-pic.png');$('#thumb').val(' ');return false;" value="取消图片">
			<script type="text/javascript">
				function crop_cut_thumb(id){
					if (id=='') {  ('请先上传缩略图');return false;}
					window.top.art.dialog({title:'裁切图片', id:'crop', iframe:'index.php?m=content&c=content&a=public_crop&module=content&catid='+catid+'&picurl='+encodeURIComponent(id)+'&input=thumb&preview=thumb_preview', width:'680px', height:'480px'}, 	function(){var d = window.top.art.dialog({id:'crop'}).data.iframe;
					d.uploadfile();return false;}, function(){window.top.art.dialog({id:'crop'}).close()});
				};
			</script>
		  </div> 
		  ${field.tips} 
	   </td>
    </tr>
</#macro>

<#-- 内容 -->
<#macro content field>
	<tr>
		<th width="80"> <font color="red">*</font>${field.name}</th>
		  <td>
		      <div id="content_tip"></div><textarea name="content" id="content" boxid="content" style="visibility: hidden; display: none;">${field.defaultValue}</textarea>
		      
		      <script type="text/javascript" src="statics/js/ckeditor/ckeditor.js">
		      </script><script type="text/javascript">
				CKEDITOR.replace( 'content',{height:300,pages:true,subtitle:true,textareaid:'content',module:'content',catid:'14',
				flashupload:true,alowuploadexts:'',allowbrowser:'1',allowuploadnum:'10',authkey:'0df34138fbddc8df5f5d97b3274c8778',
				filebrowserUploadUrl : 'index.php?m=attachment&c=attachments&a=upload&module=content&catid=14&dosubmit=1',
				toolbar :
					[
						['Source','-','Templates'],
					    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print'],
					    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['ShowBlocks'],['Image','Capture','Flash','MyVideo'],['Maximize'],
					    '/',
					    ['Bold','Italic','Underline','Strike','-'],
					    ['Subscript','Superscript','-'],
					    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
					    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
					    ['Link','Unlink','Anchor'],
					    ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
					    '/',
					    ['Styles','Format','Font','FontSize'],
					    ['TextColor','BGColor'],
					    ['attachment'],
					]
				});
				</script>
				<div class="editor_bottom"><script type="text/javascript" src="statics/js/swfupload/swf2ckeditor.js"></script><div id="page_title_div">
				<table cellpadding="0" cellspacing="1" border="0"><tbody><tr><td class="title">子标题<span id="msg_page_title_value"></span></td><td>
				<a class="close" href="javascript:;" onclick="javascript:$(&quot;#page_title_div&quot;).hide();"><span>×</span></a></td>
				</tr><tr><td colspan="2"><input name="page_title_value" id="page_title_value" class="input-text" value="" size="30">&nbsp;<input type="button" class="button" value="提交" onclick="insert_page_title(&quot;content&quot;,1)"></td></tr>
				</tbody></table></div></div>  <div class="content_attr"><label><input name="add_introduce" type="checkbox" value="1" checked="">是否截取内容</label><input type="text" name="introcude_length" value="200" size="3" class="input-text">字符至内容摘要
		<label><input type="checkbox" name="auto_thumb" value="1" checked="">是否获取内容第</label><input type="text" name="auto_thumb_no" value="1" size="2" class="input-text">张图片作为标题图片
		</div><div id="contentTip" style="display: none;"></div>
		${field.tips}
		</td>
    </tr>
</#macro>

<#macro releasetime field>
	<tr>
      <th width="80">${field.name}</th>
      <td>	
      		<link rel="stylesheet" type="text/css" href="statics/js/calendar/jscal2.css">
			<link rel="stylesheet" type="text/css" href="statics/js/calendar/border-radius.css">
			<link rel="stylesheet" type="text/css" href="statics/js/calendar/win2k.css">
			<script type="text/javascript" src="statics/js/calendar/calendar.js"></script>
			<script type="text/javascript" src="statics/js/calendar/lang/en.js"></script>
			<input type="text" name="releaseTime" id="releaseTime" value="${field.defaultValue}" size="21" class="date input-text" readonly="">&nbsp;
			<script type="text/javascript">
				Calendar.setup({
				weekNumbers: true,
			    inputField : "releaseTime",
			    trigger    : "releaseTime",
			    dateFormat: "%Y-%m-%d %H:%M:%S",
			    showTime: true,
			    minuteStep: 1,
			    onSelect   : function() {this.hide();}
				});
	        </script>  
      </td>
    </tr>
</#macro>